package com.otherTest.designpattern.creationalpattern.builder;


/**
 * @Description:
 * @author: conceit
 * @Date: 2018/9/1 0001 17:50
 */
public class MobikeBuilder implements BikeService {

    Bike bike = new Bike();

    @Override
    public void buildTyre() {
        bike.setTyre("椭圆形");
    }

    @Override
    public void buildColor() {
        bike.setColor("黑色");
    }

    @Override
    public void buildFrame() {
        bike.setFrame("铝合金");
    }

    @Override
    public Bike getBile() {
        return bike;
    }
}
